{extend name="base/container" /}
{block name="main"}
<div class="channel">
    <table class="layui-table" lay-filter="channel" lay-size="lg">
        <thead>
            <tr>
                <th lay-data="{field:'opl',align:'center'}" style="text-align:center">开启/开机</th>
                <th lay-data="{field:'op2',align:'center'}" style="text-align:center">关闭/停机</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><button id="channel_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.channel eq 1'}layui-btn-disabled{/if}" {if condition='$status.channel eq 1'}disabled="disabled"{/if}>启用所有通道</button></td>
                <td><button id="channel_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.channel eq 0'}layui-btn-disabled{/if}" {if condition='$status.channel eq 0'}disabled="disabled"{/if}>关闭所有通道</button></td>
            </tr>
            <tr>
                <td><button id="alipay_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.alipay eq 1'}layui-btn-disabled{/if}" {if condition='$status.alipay eq 1'}disabled="disabled"{/if}>启用支付宝</button></td>
                <td><button id="alipay_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.alipay eq 0'}layui-btn-disabled{/if}" {if condition='$status.alipay eq 0'}disabled="disabled"{/if}>关闭支付宝</button></td>
            </tr>
            <tr>
                <td><button id="weixin_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.weixin eq 1'}layui-btn-disabled{/if}" {if condition='$status.weixin eq 1'}disabled="disabled"{/if}>启用微信</button></td>
                <td><button id="weixin_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.weixin eq 0'}layui-btn-disabled{/if}" {if condition='$status.weixin eq 0'}disabled="disabled"{/if}>关闭微信</button></td>
            </tr>
            <tr>
                <td><button id="bank_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.bank eq 1'}layui-btn-disabled{/if}" {if condition='$status.bank eq 1'}disabled="disabled"{/if}>启用银联</button></td>
                <td><button id="bank_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.bank eq 0'}layui-btn-disabled{/if}" {if condition='$status.bank eq 0'}disabled="disabled"{/if}>关闭银联</button></td>
            </tr>
            <tr>
                <td><button id="unionpay_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.unionpay eq 1'}layui-btn-disabled{/if}" {if condition='$status.unionpay eq 1'}disabled="disabled"{/if}>启用云闪付</button></td>
                <td><button id="unionpay_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.unionpay eq 0'}layui-btn-disabled{/if}" {if condition='$status.unionpay eq 0'}disabled="disabled"{/if}>关闭云闪付</button></td>
            </tr>
            <tr>
                <td><button id="jd_start" class="layui-btn layui-btn-sm layui-btn-normal {if condition='$status.jd eq 1'}layui-btn-disabled{/if}" {if condition='$status.jd eq 1'}disabled="disabled"{/if}>启用京东</button></td>
                <td><button id="jd_stop" class="layui-btn layui-btn-sm layui-btn-danger {if condition='$status.jd eq 0'}layui-btn-disabled{/if}" {if condition='$status.jd eq 0'}disabled="disabled"{/if}>关闭京东</button></td>
            </tr>
        </tbody>
    </table>
</div>
{/block}

{block name="footer"}
{__block__}
{/block}


